﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_CapNhatDoiTac.aspx.cs" Inherits="Admin_Admin_CapNhatDoiTac" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center><h2>Cập Nhật Đối Tác</h2></center>
    <table>
    <tr>
    <td>Nhập Tên Đối Tác:</td>
    <td><asp:TextBox ID="txtTenDoiTac" runat="server" MaxLength="50"></asp:TextBox></td>
    <td>
        <asp:Button ID="Button1" runat="server" Text="Tìm" onclick="Button1_Click" 
            Width="70px" /></td>
    </tr>
    </table>
    <center><asp:GridView ID="grvDoiTac" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="TenDoiTac" HeaderText="Tên Đối Tác" />
            <asp:ImageField DataImageUrlField="Logo" HeaderText="Logo">
                <ControlStyle Height="50px" Width="50px" />
            </asp:ImageField>
            <asp:BoundField DataField="NguoiDaiDien" HeaderText="Người Đại Diện" />
            <asp:BoundField DataField="Website" HeaderText="Website" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" 
                DataNavigateUrlFormatString="~/ChucNang/Admin/Admin_CapNhatDoiTacChiTiet.aspx?id={0}" 
                Text="Cập Nhật" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" 
                DataNavigateUrlFormatString="~/ChucNang/Admin/Admin_XuLyXoaDoiTac.aspx?id={0}" 
                Text="Xóa" />
        </Columns>
    </asp:GridView></center>
</asp:Content>

